class AddConfigsForPartdimen < ActiveRecord::Migration
  def self.up
    add_column :parts ,:show_total ,:boolean ,:default => true
    add_column :parts ,:show_avg ,:boolean ,:default => true
    add_column :dimens ,:show_total ,:boolean ,:default => true
    add_column :dimens ,:show_avg ,:boolean ,:default => true
  end

  def self.down
    remove_column :parts ,:show_total 
    remove_column :parts ,:show_avg
    remove_column :dimens ,:show_total
    remove_column :dimens ,:show_avg 
  end
end
